class TodoItemModel {
  final num id;
  final String itemName;
  final String itemContent;
  final String module;

  final String excelNum;

  final String nodeName;

  TodoItemModel({
    required this.id,
    required this.itemName,
    required this.itemContent,
    required this.module,
    required this.excelNum,
    required this.nodeName,
  });

  factory TodoItemModel.fromJson(Map<String, dynamic> json) {
    return TodoItemModel(
      id: json['id'],
      itemName: json['itemName'] ?? '',
      itemContent: json['itemContent'] ?? '',
      module: json['module'] ?? '',
      excelNum: json['excelNum'] ?? '',
      nodeName: json['nodeName'] ?? '',
    );
  }

  Map<String, dynamic> toJson() {
    return {
      'id': id,
      'itemName': itemName,
      'itemContent': itemContent,
      'module': module,
      'excelNum': excelNum,
      'nodeName': nodeName,
    };
  }
}
